<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport"
	content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link rel="apple-touch-icon-precomposed"
	href="http://www.17sucai.com/static/images/favicon.ico" />

<script type="text/javascript"
	src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
	data-appid="101311470"
	data-redirecturi="http://www.starlove.top/newsAnalyse/index.htm"
	charset="utf-8"></script>
<title>新闻分析</title>
<script type="text/javascript">
	function changeDateIndex(obj, params) {
		var _this = $(obj);
		var content = _this.prev("span").text();
		window.location.href = "/newsAnalyse/index.htm?content=" + content
				+ "&params=" + params;
	}
</script>
</head>
<body>
	<%@ include file="comment/user.jspf"%>
	<div id="header">
		<div class="wrap">
			<i class="menu_open"></i>
			<div class="logo">
				<a>实时新闻</a>
			</div>
			<i class="search_open"></i>
		</div>
		<div class="logo_msk"></div>
	</div>
	<div id="container">
		<div id="sort">
			<table width="100%" border="0" cellspacing="0">
				<tr>
					<td class="sort_left">
						<div class="sort_cate">
							<div class="sort_b">
								<a href="#" onclick="return false;"><div
										class="sort_b_inner">
										<i class="cate_default"></i><span id="contentQuery">${content}</span>
										<div class="clear"></div>
									</div></a>
							</div>
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div id="content">
			<div id="list">
				<ul>
					<c:forEach items="${ newsList}" var="bean">
						<li>
							<div class="wrap">
								<a class="alist"
									vhref="/newsAnalyse/content.htm?key=${bean.key_news_id}&url=${bean.url }&newsId=${bean.id}">
									<div class="list_litpic fl">
										<c:choose>
											<c:when test="${!empty bean.img}">
												<img src="${bean.img}" />
											</c:when>
											<c:otherwise>
												<img src="./images/1.jpg" />
											</c:otherwise>
										</c:choose>

									</div>
									<div class="list_info">
										<h4>${bean.title}</h4>
										<h5>
											<c:choose>
												<c:when test="${fn:length(bean.content) > 30}">
													<c:out value="${fn:substring(bean.content, 0, 30)}......" />
												</c:when>
												<c:otherwise>
													<c:out value="${bean.content }" />
												</c:otherwise>
											</c:choose>
										</h5>
										<div class="list_info_i">
											<dl class="list_info_views">
												<dt></dt>
												<dd>${bean.pdate }</dd>
												<div class="clear"></div>
											</dl>
											<dl class="list_info_comment">
												<dt></dt>
												<dd>5</dd>
												<div class="clear"></div>
											</dl>
											<dl class="list_info_like">
												<dt></dt>
												<dd>${bean.src }</dd>
												<div class="clear"></div>
											</dl>
											<div class="clear"></div>
										</div>
									</div>
									<div class="clear"></div>
								</a>
							</div>
						</li>
					</c:forEach>
				</ul>

				<c:choose>
					<c:when test="${size>=10}">
						<div class="list_loading">
							<i></i><span>努力加载中...</span>
						</div>
					</c:when>
					<c:otherwise>
						<div class="list_loading">
							<span>没有了</span>
						</div>
					</c:otherwise>
				</c:choose>


			</div>
		</div>

		<div class="push_msk"></div>
	</div>

	<div id="sort_content">
		<div class="asort">
			<div class="ct">
				<div class="wrap">
					<ul class="choose_cate">
						<li c_data="0" style="font-weight: 700;"><i
							style="background: none; width: 0; margin-right: 0;" class="s"></i><span>全部</span><i
							class="e" onclick="changeDateIndex(this,'all')"></i></li>
						<li c_data="2"><i
							style="background: none; width: 10px; margin-right: 0;" class="s"></i><span>最近一小时</span>
							<i class="e" onclick="changeDateIndex(this,'1')"></i></li>
						<li c_data="2"><i
							style="background: none; width: 10px; margin-right: 0;" class="s"></i><span>最近三小时</span><i
							class="e" onclick="changeDateIndex(this,'3')"></i></li>
						<li c_data="25"><i
							style="background: none; width: 10px; margin-right: 0;" class="s"></i><span>最近一天</span><i
							class="e" onclick="changeDateIndex(this,'24')"></i></li>
					</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>

		</div>

		<div class="asort">
			<div class="hd">
				<div class="wrap">
					<div class="fl">
						<i></i><span>版权</span>
						<div class="clear"></div>
					</div>
					<div class="fr"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="ct">
				<div class="wrap">
					<!--<h4 class="cate_trade"><i></i><span>行业</span></h4>-->
					<ul>
						<li t_data=""><i></i><span>所有者</span><i class="e"></i></li>
						<li t_data="1"><i></i><span>原创</span><i class="e"></i></li>
						<li t_data="2"><i></i><span>转载</span><i class="e"></i></li>
					</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>

	</div>

	<div id="newwrap_t" class="newwrap">
		<div class="newwrap_msk"></div>
		<iframe id="newwrap" frameborder="0" width="100%" height="100%"></iframe>
	</div>
	<div class="loading_dark"></div>
	<div id="loading_mask">
		<div class="loading_mask">
			<ul class="anm">
				<li></li>
				<li></li>
				<li></li>
				<li></li>
				<li></li>
			</ul>
		</div>
	</div>
	<input type="hidden" id="size" value="${size }" />
	<script language="javascript" src="js/zepto.min.js"></script>
	<script language="javascript" src="js/fx.js"></script>
	<script language="javascript" src="js/script.js"></script>
</body>
</html>